package xyz.zhouzhaodong.crm.controller;


import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import xyz.zhouzhaodong.crm.dto.UniversityContractDto;
import xyz.zhouzhaodong.crm.service.IUniversityContractService;
import xyz.zhouzhaodong.crm.util.NoRepeatSubmit;
import xyz.zhouzhaodong.crm.util.RestMessage;

import javax.annotation.Resource;

/**
 * <p>
 * 高校合同 前端控制器
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-22
 */
@RestController
@RequestMapping("/university-contract")
public class UniversityContractController {

    @Resource
    IUniversityContractService universityContractService;
    
    /**
     * 新增高校中介费
     * @param universityContractDto
     * @return
     */
    @NoRepeatSubmit
    @RequestMapping("/add")
    public RestMessage addUniversityContract(UniversityContractDto universityContractDto){
        return universityContractService.addUniversityContract(universityContractDto);
    }

    /**
     * 删除高校中介费
     * @param universityContractDto
     * @return
     */
    @RequestMapping("/delete")
    public RestMessage deleteUniversityContract(UniversityContractDto universityContractDto){
        return universityContractService.deleteUniversityContract(universityContractDto);
    }

    /**
     * 修改高校中介费
     * @param universityContractDto
     * @return
     */
    @RequestMapping("/update")
    public RestMessage updateUniversityContract(UniversityContractDto universityContractDto){
        return universityContractService.updateUniversityContract(universityContractDto);
    }

    /**
     * 查询高校中介费
     * @param universityContractDto
     * @return
     */
    @RequestMapping("/select")
    public RestMessage selectUniversityContract(UniversityContractDto universityContractDto){
        return universityContractService.selectUniversityContract(universityContractDto);
    }

}
